/*    */ package com.zimbra.cs.redolog.op;
/*    */ 
/*    */ import com.zimbra.cs.mailbox.MailItem.Type;
/*    */ import com.zimbra.cs.mailbox.MailboxOperation;
/*    */ import com.zimbra.cs.redolog.RedoLogInput;
/*    */ import com.zimbra.cs.redolog.RedoLogOutput;
/*    */ import java.io.IOException;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class RenameFolderPath
/*    */   extends RenameItemPath
/*    */ {
/*    */   public RenameFolderPath()
/*    */   {
/* 32 */     this.mOperation = MailboxOperation.RenameFolderPath;
/* 33 */     this.mId = 0;
/* 34 */     this.type = MailItem.Type.FOLDER;
/*    */   }
/*    */   
/*    */   public RenameFolderPath(int mailboxId, int id, String path) {
/* 38 */     super(mailboxId, id, MailItem.Type.FOLDER, path);
/* 39 */     this.mOperation = MailboxOperation.RenameFolderPath;
/*    */   }
/*    */   
/*    */   protected void serializeData(RedoLogOutput out) throws IOException
/*    */   {
/* 44 */     out.writeInt(this.mId);
/* 45 */     out.writeUTF(this.mPath);
/* 46 */     if (this.mParentIds != null) {
/* 47 */       out.writeInt(this.mParentIds.length);
/* 48 */       for (int i = 0; i < this.mParentIds.length; i++) {
/* 49 */         out.writeInt(this.mParentIds[i]);
/*    */       }
/*    */     } else {
/* 52 */       out.writeInt(0);
/*    */     }
/*    */   }
/*    */   
/*    */   protected void deserializeData(RedoLogInput in) throws IOException
/*    */   {
/* 58 */     this.mId = in.readInt();
/* 59 */     this.mPath = in.readUTF();
/* 60 */     int numParentIds = in.readInt();
/* 61 */     if (numParentIds > 0) {
/* 62 */       this.mParentIds = new int[numParentIds];
/* 63 */       for (int i = 0; i < numParentIds; i++) {
/* 64 */         this.mParentIds[i] = in.readInt();
/*    */       }
/*    */     }
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/redolog/op/RenameFolderPath.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */